import 'package:json_annotation/json_annotation.dart';
part 'user_model.g.dart';

@JsonSerializable()
class UserModel {
  final String sex_name;
  final int member_id;
  final String username;
  final String member_no;
  final String mobile;
  final String nickname;
  final String headimg;
  final String money;
  final String money_get;
  final int point;
  final String balance;
  final String login_type;
  final int invite_member_no;

  const UserModel(
    this.sex_name,
    this.member_id,
    this.username,
    this.member_no,
    this.mobile,
    this.nickname,
    this.headimg,
    this.money,
    this.money_get,
    this.point,
    this.balance,
    this.login_type,
    this.invite_member_no,
  );

  factory UserModel.fromJson(Map<String, dynamic> json) =>
      _$UserModelFromJson(json);
  Map<String, dynamic> toJson() => _$UserModelToJson(this);
}
